<template>
  <div class="tab">
    <router-link tag="div" class="tab-item" to="/recommend">
      <img src="../../common/image/sy.png" />
      <div class="tab-link">首页</div>
    </router-link>
    <router-link tag="div" class="tab-item" to="/MyPage" >
      <img src="../../common/image/wode.png" />
      <div class="tab-link">我的</div>
    </router-link>
    <router-link tag="div" class="tab-item" to="/fenxiangfanxian">
      <img src="../../common/image/fxfx.png" />
      <div class="tab-link">分享返现</div>
    </router-link>
    <!-- <router-link tag="div" class="tab-item" to="/search">
      <span class="tab-link">搜索</span>
    </router-link>-->
  </div>
</template>

<script type="text/ecmascript-6">
export default {
  name: "Tab"
};
</script>

<style scoped lang="stylus" rel="stylesheet/stylus">
@import '~common/stylus/variable';

.tab {
  display: flex;
  height: 70px;
  font-size: $font-size-medium;

  .tab-item {
    flex: 1;
    text-align: center;
    font-size: 16px;

    img {
      margin-top: 10px;
      width: 20%;
    }

    .tab-link {
      padding-top: 5px;
      color: $color-text-l;
    }

    &.router-link-active {
      .tab-link {
        color: $color-theme;
        // border-bottom: 2px solid $color-theme;
      }
    }
  }
}
</style>